//
//  BaseNC.m
//  AAIM
//
//  Created by awh on 2019/11/24.
//  Copyright © 2019年 AAIM. All rights reserved.
//

#import "BaseNC.h"

@interface BaseNC ()

@end

@implementation BaseNC

- (void)viewDidLoad {
    [super viewDidLoad];
    //设置为YES则view自动下沉导航栏高度
    self.navigationBar.translucent = YES;
    //修改item的颜色
    self.navigationBar.tintColor = KHEXCOLOR(kBlackColor);
    //修改title的字体样式
    NSDictionary * textAttributes = @{NSForegroundColorAttributeName:KHEXCOLOR(kBlackColor),NSFontAttributeName:kMainFont(18.f)};
    [self.navigationBar setTitleTextAttributes:textAttributes];
    //改变navBar的背景颜色
//    [self.navigationBar setBarTintColor:[UIColor whiteColor]];
}

- (void)viewWillAppear:(BOOL)animated{

//    self.navigationBar.translucent=NO;
//    self.automaticallyAdjustsScrollViewInsets = NO; //取消导航栏自动适应
//    self.edgesForExtendedLayout = UIRectEdgeNone;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
